package com.alex.spring.aop;/**
 * Created by Administrator on 2018\10\5 0005.
 */

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Administrator
 * @date 2018\10\5 0005
 */
public class Spring03 {
    @Test
    public void test01(){
        ApplicationContext context =
                new ClassPathXmlApplicationContext("AopBeans.xml");
        Student student = (Student) context.getBean("student");
        student.getName();
        student.getAge();
        student.printThrowException();
    }
}
